package com.yiren.dbaa.module.common.contract;

import com.yiren.dbaa.currency.api.CommonCallBack;

/**
 * Created by WANGRONGXIANG
 * on 2022/6/28
 * Describe 权限请求契约类
 */
public interface PermissionContract {

    interface Model {

        /**
         * 请求权限
         *
         * @param permissions
         * @param versionCode 需要请求对应权限的版本
         * @param callBack
         */
        void requestPermissions(String[] permissions, int versionCode, CommonCallBack callBack);

        /**
         * 是否有对应的权限
         *
         * @param permissions
         * @return
         */
        boolean hasPermission(String[] permissions);

    }

    interface View {
    }

    interface Presenter {
    }
}
